/**
 * @class Global_CSS
 *
 * Global CSS variables and mixins of Sencha Touch.
 */

/**
 * @var {boolean} $include-html-style
 * Optionally remove included HTML styles/typography (for components with styleHtmlContent: true).
 * Styles are scoped to .x-html. Set t o false to reduce CSS weight.
 */
$include-html-style: true !default;

/**
 * @var {boolean} $include-default-icons
 * Optionally remove the default icon set which includes the following toolbar and tab bar icons: action,
 * add, arrow_down, arrow_left, arrow_right, arrow_up, bookmarks, compose, delete, download, favorites,
 * home, info, locate, maps, more, organize, refresh, reply, search, settings, star, team, time, trash,
 * and user. Set to false to reduce CSS weight.
 */
$include-default-icons: true !default;

/**
 * @var {boolean} $include-form-sliders
 * Decides if default HTML styles are included (for components with styleHtmlContent: true). Class is applied to .x-html.
 */
$include-form-sliders: true !default;

/**
 * @var {boolean} $include-default-uis
 * Decides whether or not to include the default UIs for all components.
 */
$include-default-uis: true !default;

/**
 * @var {color} $active-color
 * Color used for elements like selected rows, "action" UIs (eg. on buttons) and certain overlays like the picker mask.
 */
//$active-color: darken(saturate($base-color, 55%), 10%) !default;

/**
 * @var {color} $page-bg-color
 * Background color for fullscreen components.
 */
//$page-bg-color: #eee !default;

/**
 * @var {measurement} $global-row-height
 * The minimum row height for items like toolbars.
 */
$global-row-height: 2.6em !default;

/**
 * @var {measurement} $global-row-height
 * The minimum row height for items like toolbars.
 */
$global-list-height: 46px !default;

/**
 * color styles
 */

$dark-theme: true !default;
$dialog-color: #1F1F1F;

/**
 * @var {color} $base-color
 * The primary color variable from which most elements derive their color scheme.
 */
$base-color: rgba(145,0,145,1) !default; // Triton Blue

/**
 * Light theme
 */
$light-background-color: #fff;
$light-foreground-color: #111;
$light-inactive-color: #ddd;

// Form fields
$light-field-background-color: #fff;
$light-field-border-color: #BABABA;
$light-field-color: #000;
$light-field-placeholder-color: #7A7A7A;
$light-field-focus-background-color: #fff;
$light-field-focus-border-color: #5C5C5C;
$light-field-disabled-background-color: #EAEAEA;
$light-field-disabled-border-color: #D9D9D9;
$light-field-disabled-color: #9F9F9F;
$light-field-disabled-placeholder-color: #BDBDBD;

$light-form-slider-background-color: #C6C6C6;
$light-form-slider-value-background-color: $base-color;
$light-form-slider-thumb-background-color: #000;
$light-form-slider-disabled-background-color: #DBDBDB;
$light-form-slider-disabled-value-background-color: #BABABA;
$light-form-slider-disabled-thumb-background-color: #A0A0A0;

$light-form-toggle-background-color: #A6A6A6;
$light-form-toggle-border-color: #A6A6A6;
$light-form-toggle-thumb-background-color: $light-form-slider-thumb-background-color;
$light-form-toggle-disabled-background-color: #E0E0E0;
$light-form-toggle-disabled-border-color: #CCCCCC;
$light-form-toggle-disabled-thumb-background-color: #A6A6A6;

/**
 * Dark theme
 */
$dark-background-color: #111;
$dark-foreground-color: #fff;
$dark-inactive-color: #666;

// Form fields
$dark-field-background-color: #D2D2D2;
$dark-field-border-color: #D2D2D2;
$dark-field-color: rgba(0,0,0,.8);
$dark-field-placeholder-color: rgba(0,0,0,.6);
$dark-field-focus-background-color: #FFFFFF;
$dark-field-focus-border-color: #FFFFFF;
$dark-field-disabled-background-color: #1D1D1D;
$dark-field-disabled-border-color: #777777;
$dark-field-disabled-color: rgba(255,255,255,.4);
$dark-field-disabled-placeholder-color: rgba(255,255,255,.2);

$dark-form-slider-background-color: #6C6C6C;
$dark-form-slider-value-background-color: $base-color;
$dark-form-slider-thumb-background-color: #fff;
$dark-form-slider-disabled-background-color: #383838;
$dark-form-slider-disabled-value-background-color: #535353;
$dark-form-slider-disabled-thumb-background-color: #7E7E7E;

$dark-form-toggle-background-color: #6B6B6B;
$dark-form-toggle-border-color: #6C6C6C;
$dark-form-toggle-thumb-background-color: $dark-form-slider-thumb-background-color;
$dark-form-toggle-disabled-background-color: #383838;
$dark-form-toggle-disabled-border-color: #4A4A4A;
$dark-form-toggle-disabled-thumb-background-color: #6C6C6C;

/**
 * Default values (light theme)
 */

$background-color: $light-background-color;
$foreground-color: $light-foreground-color;
$inactive-color: $light-inactive-color;

// Form fields
$field-background-color: $light-field-background-color;
$field-border-color: $light-field-border-color;
$field-color: $light-field-color;
$field-placeholder-color: $light-field-placeholder-color;
$field-focus-background-color: $light-field-focus-background-color;
$field-focus-border-color: $light-field-focus-border-color;
$field-disabled-background-color: $light-field-disabled-background-color;
$field-disabled-border-color: $light-field-disabled-border-color;
$field-disabled-color: $light-field-disabled-color;
$field-disabled-placeholder-color: $light-field-disabled-placeholder-color;

$form-slider-background-color: $light-form-slider-background-color;
$form-slider-value-background-color: $light-form-slider-value-background-color;
$form-slider-thumb-background-color: $light-form-slider-thumb-background-color;
$form-slider-disabled-background-color: $light-form-slider-disabled-background-color;
$form-slider-disabled-value-background-color: $light-form-slider-disabled-value-background-color;
$form-slider-disabled-thumb-background-color: $light-form-slider-disabled-thumb-background-color;

$form-toggle-background-color: $light-form-toggle-background-color;
$form-toggle-border-color: $light-form-toggle-border-color;
$form-toggle-thumb-background-color: $form-slider-thumb-background-color;
$form-toggle-disabled-background-color: $light-form-toggle-disabled-background-color;
$form-toggle-disabled-border-color: $light-form-toggle-disabled-border-color;
$form-toggle-disabled-thumb-background-color: $light-form-toggle-disabled-thumb-background-color;

@if ($dark-theme) {
    $background-color: $dark-background-color;
    $foreground-color: $dark-foreground-color;
    $inactive-color: $dark-inactive-color;

    // Form fields
    $field-background-color: $dark-field-background-color;
    $field-border-color: $dark-field-border-color;
    $field-color: $dark-field-color;
    $field-placeholder-color: $dark-field-placeholder-color;
    $field-focus-background-color: $dark-field-focus-background-color;
    $field-focus-border-color: $dark-field-focus-border-color;
    $field-disabled-background-color: $dark-field-disabled-background-color;
    $field-disabled-border-color: $dark-field-disabled-border-color;
    $field-disabled-color: $dark-field-disabled-color;
    $field-disabled-placeholder-color: $dark-field-disabled-placeholder-color;

    $form-slider-background-color: $dark-form-slider-background-color;
    $form-slider-value-background-color: $dark-form-slider-value-background-color;
    $form-slider-thumb-background-color: $dark-form-slider-thumb-background-color;
    $form-slider-disabled-background-color: $dark-form-slider-disabled-background-color;
    $form-slider-disabled-value-background-color: $dark-form-slider-disabled-value-background-color;
    $form-slider-disabled-thumb-background-color: $dark-form-slider-disabled-thumb-background-color;

    $form-toggle-background-color: $dark-form-toggle-background-color;
    $form-toggle-border-color: $dark-form-toggle-border-color;
    $form-toggle-thumb-background-color: $form-slider-thumb-background-color;
    $form-toggle-disabled-background-color: $dark-form-toggle-disabled-background-color;
    $form-toggle-disabled-border-color: $dark-form-toggle-disabled-border-color;
    $form-toggle-disabled-thumb-background-color: $dark-form-toggle-disabled-thumb-background-color;
}

$form-slider-height: 11px;

$alert-color: red !default;
$confirm-color: #92cf00 !default; // Green

/**
* font sizes
*/
$font-size-small: 10pt;
$font-size-normal: 11pt;
$font-size-medium: 15pt;
$font-size-medium-large: 17pt;
$font-size-large: 19pt;
$font-size-extra-large: 24pt;
